package com.mindcraft.shop.po;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * <p>
 * 文章评论表
 * </p>
 *
 * @author linzhiwei
 */
@Data
@TableName("community_comment")
public class CommunityComment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    /**
     * 评论来源标识
     */
    private Integer communityId;


    /**
     * 父评论ID
     */
    private Integer parentCommentId;

    /**
     * 发表用户ID
     */
    private String userId;

    /**
     * 楼层评论ID
     */
    private Integer floorCommentId;

    /**
     * 父发表用户名ID
     */
    private String parentUserId;

    /**
     * 点赞数
     */
    private Integer likeCount;

    /**
     * 评论内容
     */
    private String commentContent;

    /**
     * 评论额外信息
     */
    private String commentInfo;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;



}

